<?php

include 'database.php';

class user_details{
	
	protected $email;
	protected $dbo;
	
	function __construct($email){
		$this->email = $email;
		$this->dbo = new database();	
	}
	
	public function get_current_allocations(){
		$query = "select * from supervises_exam where email = '".$this->email."'";
		$result = $this->dbo->execuite_query($query);
		
		$list = array();
		while ($row = mysql_fetch_assoc($result)){
			$list[] = $row['Sub_Code'];
		}
		
		return $list;
	}

}

?>